import { Injectable } from '@angular/core';
import { globalVariables } from './config';

@Injectable()
export class GlobalVars {
    setMyGlobalVar(object: Object) {
        var attrList = Object.keys(object);
        attrList.forEach(value => {
            globalVariables[value] = object[value];
        });
    }

    getMyGlobalVar(attr: string) {
        return globalVariables[attr];
    }
}